using System.Collections.Generic;
using Provausio.Common.Objects;
using TrainingManagement.api.Models.Data.CRUD;
using TrainingManagement.api.Models.Data.CRUD.DepartmentTree;

namespace TrainingManagement.api.Models.BusinessLogic.DepartmentTree
{
    public class DepartmentTreeSelectByChildOperation : BusinessOperation<int, List<BusinessObjects.DepartmentTree>>
    {
        readonly DepartmentTreeSelectByChildDataSource _departmentTreeSelectByChild = new DepartmentTreeSelectByChildDataSource();

        public override List<BusinessObjects.DepartmentTree> Run(int input)
        {
            return _departmentTreeSelectByChild.Execute(input);
        }
    }
}